package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class TrimAllStringElementInAnArray {
	public static void main(String[] argv) {
		String[] array = new String[]{"1", "abc", "level", "www.tah1986.com", "asdf 123"};
		System.out.println(java.util.Arrays.toString(trimAll(array)));
	}

	public static String[] trimAll(String[] array) {
		for (int i = 0; i < array.length; i++) {
			array[i] = array[i].trim();
		}
		return array;
	}
}
